Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-58417

Only default article locales should validate required fields



      LPS-54498 introduced validation for all article locales. But this introduces some unwanted behavior. If someone introduces a new required field and someone is just translating the content in one language, he/she should have to do the same for every language.

      Reproduction steps:

      1. Create a web content structure using attached file (LPS-58417_structure.txt if using 6.2.x or LPS-58417_structure_master.txt if using Liferay 7).
      2. Get the structureKey from DDMStructure table in database from the previously created structure.
      3. Create a template using attached file (LPS-58417_template.txt if using 6.2.x or LPS-58417_template_master.txt if using Liferay 7) and choose the previous structure as the template's structure.
      4. Go to Control Panel -> Server Administration -> Script and execute attached groovy script (journalarticle_LPS-58417.groovy if using 6.2.x or journalarticle_LPS-58417_master.groovy if using Liferay 7), replacing GROUPID and DDMSTRUCTUREKEY with testing environment actual values.

      Expected behavior:
      The script should write "Created article"
      Actual behavior:
      Script writes "There are missing fields!"


        1. fixed58417.png
          61 kB
        2. fixed58417master.png
          100 kB
        3. journalarticle_LPS-58417_master.groovy
          4 kB
        4. journalarticle_LPS-58417.groovy
          3 kB
        5. LPS-58417_structure_master.txt
          1 kB
        6. LPS-58417_structure.txt
          0.9 kB
        7. LPS-58417_template_master.txt
          0.3 kB
        8. LPS-58417_template.txt
          0.3 kB

          Issue Links



              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created:
                  Days since last comment:
                  4 years, 28 weeks, 5 days ago


                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 Alpha 2