Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

Open Power Template 2.x family

PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!

Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
Tasklist

FS#140 - Conditional opt:attribute does not hide the attribute, if the selected value is empty

Attached to Project: Open Power Template
Opened by Zyx (Zyx) - Friday, 27 November 2009, 23:34 GMT-7
Last edited by Zyx (Zyx) - Friday, 27 November 2009, 23:35 GMT-7
Task Type Bug Report
Category Instructions
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity Low
Priority Normal
Reported Version 2.0.3
Due in Version 2.0.4
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Consider the following code:

~~~~
<foo>
<opt:attribute name="class">
<opt:value test="$val1 == 'foo'">a</opt:value>
<opt:value test="$val1 == 'bar'">b</opt:value>
</opt:attribute>
</foo>
~~~~

Let's say that `$val1` is 'joe'. As you can see, no condition is met and opt:attribute should not add the "class" attribute to the tag in this case. However, the output code is:

~~~~
<foo class="">
</foo>
~~~~
This task depends upon

Closed by  Zyx (Zyx)
Friday, 27 November 2009, 23:35 GMT-7
Reason for closing:  Fixed
Additional comments about closing:  Fixed in rev. 270

Loading...