Public bug reported:
Aiki Framework has some utility functions that allow you to better
present user-entered data. Namely, it can convert new lines to <p></p>
or <br/>.
These functions work great, but I've noticed one instance where they are
mishandled: the case where the field you're trying to parse is NULL or
is not returned.
Say, I've got some sql in the query box of the widget like:
SELECT description FROM page_text WHERE id = (!(1)!)
Then, in the content block, I'm outputting that field, wrapped in a
utility function:
[p[ ((description ]p]
If the pulled in field has some value in it, the utitlity function works
as expected, but if the description field is NULL, then you get this
output onto a page:
((description))
Ideally, you'd want to have this field completely left off of the page,
if the field has no data. You can sidestep this hiccup in aiki by
adding a conditional to the initial sql like WHERE description IS NOT
NULL.
** Affects: aikiframework
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/978408
Title:
[p[ ((some_field)) ]p] prints ((some_field)) if field is null
Status in Aiki Framework:
New
Bug description:
Aiki Framework has some utility functions that allow you to better
present user-entered data. Namely, it can convert new lines to
<p></p> or <br/>.
These functions work great, but I've noticed one instance where they
are mishandled: the case where the field you're trying to parse is
NULL or is not returned.
Say, I've got some sql in the query box of the widget like:
SELECT description FROM page_text WHERE id = (!(1)!)
Then, in the content block, I'm outputting that field, wrapped in a
utility function:
[p[ ((description ]p]
If the pulled in field has some value in it, the utitlity function
works as expected, but if the description field is NULL, then you get
this output onto a page:
((description))
Ideally, you'd want to have this field completely left off of the
page, if the field has no data. You can sidestep this hiccup in aiki
by adding a conditional to the initial sql like WHERE description IS
NOT NULL.
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/978408/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp