#533: WebBasket: more robust tmpl_create_pseudo_item()
------------------------+-----------------
Reporter: jcaffaro | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: WebBasket | Version:
Resolution: | Keywords:
------------------------+-----------------
Comment (by nkasioum):
The webbasket_templates.tmpl_create_pseudo_item() function is meant to be
an internal function used only for pseudo HB representation of external
sources items (URLs with a title and description). Due to a faulty check
it was also being applied to regular records that were previously deleted
and had no content anymore thus causing this error. The following patch
corrects these faulty checks (in 4 cases) and adds an extra check in the
function just to be on the safe side. Here it is: [http://invenio-
software.org/repo/personal/invenio-
nkasioum/commit/?h=webbasket_fixes_and_improvements&id=66f78262b195ea9424e8896fd991541eaf69d760
WebBasket: fixed displaying deleted records bug]. However it is still not
a robust function and takes improvement.
--
Ticket URL: <http://invenio-software.org/ticket/533#comment:1>
Invenio <http://invenio-software.org>