Link export failed on 5.1.1

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Nov 28, 2010, 10:16:10 AM11/28/10
to In-Portal Bugs
Can't perform link export, since when I fill export wizard settings and press export I got redirected to same page with error message on top, but no field is reported as having error.

Here is what actually contains an error in debugger:

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

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry Andrejev

unread,
Nov 28, 2010, 9:41:15 PM11/28/10
to in-port...@googlegroups.com
Hi Alex,

Yes, I confirm that there is an error. After deeper look 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.


DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.



--


Best regards,

Dmitry A.

Alexander Obuhovich

unread,
Nov 29, 2010, 2:15:37 AM11/29/10
to in-port...@googlegroups.com
Wow. Elegant solution.

Please create task with a patch and make that task related to one where we set NULL values as default ones.

We can schedule it to 5.1.2.

Dmitry Andrejev

unread,
Nov 30, 2010, 12:53:39 PM11/30/10
to in-port...@googlegroups.com
Hi,

Here is a task + patch for 5.1.2

937: Issues with Exporting Category Items


DA
Issues-with-Exporting-Category-Items-MODULES.patch
Reply all
Reply to author
Forward
0 new messages