DBItem loading problem, when multiple keys are used

2 views
Skip to first unread message

Alexander Obuhovich

unread,
Dec 8, 2011, 10:02:52 AM12/8/11
to In-Portal Bugs
By default In-Portal looks for an ID of DBItem that is accessed from template in the url. When item ID is missing, but it's data needs to be displayed on a template, then "no_permission" template is shown.

As a part of customization process developer sometimes needs to load DBItem from database using not it's ID, but a combination of fields.
All works fine until nothing is loaded by a field combination.

In this case <inp2:prefix_Field name="IDField"/> tag returns "Array" field instead of "" as usual for unsuccessfully loaded DBItems.



Ready for testing.

--
Best Regards,

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

Dmitry A.

unread,
Dec 8, 2011, 10:49:37 PM12/8/11
to in-port...@googlegroups.com
Patch is tested good - thanks for your work!


DA
Reply all
Reply to author
Forward
0 new messages