In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
937 [In-Portal CMS] Data Management bug report always 2010-11-30 11:51 2011-03-30 09:53
Dmitry  
alex  
normal  
closed 5.1.1  
fixed  
 
none 5.1.2-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/5bafcae12df7e077
Fixes issue with exporting category items (ie. Links)
0
0000937: Issues with Exporting Category Items
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
        )
)
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.
child of 0000845closed  (5.1.1)Dmitry Revising usage of NULL columns 
patch Issues-with-Exporting-Category-Items-MODULES.patch (6,499) 2010-11-30 11:51
http://tracker.in-portal.org/file_download.php?file_id=861&type=bug
Issue History
2011-03-30 09:53 Dmitry Note Added: 0003357
2011-03-30 09:53 Dmitry Status resolved => closed
2011-01-05 06:10 alex Note Added: 0003163
2011-01-05 06:10 alex Status reviewed and tested => resolved
2011-01-05 06:10 alex Fixed in Version => 5.1.2-B1
2011-01-05 06:10 alex Resolution open => fixed
2011-01-05 06:10 alex Assigned To !COMMUNITY => alex
2011-01-05 06:10 alex Changeset attached 5.1.x r14123
2011-01-05 06:10 alex Changeset attached 5.1.x r14122
2011-01-05 06:09 alex Changeset attached 5.1.x r14121
2011-01-05 06:09 alex Changeset attached 5.1.x r14120
2011-01-05 06:08 alex Note Added: 0003162
2011-01-05 06:08 alex Status needs testing => reviewed and tested
2010-11-30 11:54 Dmitry Relationship added child of 0000845
2010-11-30 11:51 Dmitry Assigned To => !COMMUNITY
2010-11-30 11:51 Dmitry Developer => Dmitry
2010-11-30 11:51 Dmitry Status active => needs testing
2010-11-30 11:51 Dmitry New Issue
2010-11-30 11:51 Dmitry File Added: Issues-with-Exporting-Category-Items-MODULES.patch
2010-11-30 11:51 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/5bafcae12df7e077
2010-11-30 11:51 Dmitry Change Log Message => Fixes issue with exporting category items (ie. Links)

Notes
(0003162)
alex   
2011-01-05 06:08   
ok
(0003163)
alex   
2011-01-05 06:10   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000937: Issues with Exporting Category Items
Commit on behalf of Dmitry
(0003357)
Dmitry   
2011-03-30 09:53   
Closing, since 5.1.2 release has been released.