Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-752

Issues with Exporting Category Items

    XMLWordPrintable

    Details

    • Additional information:
      Hide

      The problem is related to making 'default' = NULL for CreatedById field.

      The Export has the code which loads the objects and then goes through all Required fields which are empty and tries to preset them with a "sample_value" (not used much these days) or "no value" text (which is why CreatedById fails) and then tries to Validate it.

      The whole issue can be fixed by adding: 'sample_value' => 'Guest' to declaration of CreatedById field.

      Note that same bug is in Articles and other CategoryItems.

      Show
      The problem is related to making 'default' = NULL for CreatedById field. The Export has the code which loads the objects and then goes through all Required fields which are empty and tries to preset them with a "sample_value" (not used much these days) or "no value" text (which is why CreatedById fails) and then tries to Validate it. The whole issue can be fixed by adding: 'sample_value' => 'Guest' to declaration of CreatedById field. Note that same bug is in Articles and other CategoryItems.
    • Change Log Message:
      Fixes issue with exporting category items (ie. Links)
    • External issue ID:
      937
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Can't perform export for Category Items, since when press export button get redirected to same page with error message on top, but no field is reported as having error.

      Debugger shows:

      Array
      (
      [CreatedById] = Array
      (
      [pseudo] = invalid_option
      )
      )

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: