Commit c40186da authored by Chris McDonough's avatar Chris McDonough

Fix after namespace issue fix. Because 'action' always exists in a...

Fix after namespace issue fix.  Because 'action' always exists in a manage_options entry for an item, its existence in the entry is not a reliable indicator that the entry is not the "View" tab.  Since it was tested for by "has_key", the View tab always pointed back to the current page (manage_workspace).  We fix it here by using "get" instead of "has_key".
parent bffde242
...@@ -53,21 +53,27 @@ ...@@ -53,21 +53,27 @@
</tr> </tr>
<tr> <tr>
<dtml-in manage_options mapping> <dtml-in manage_options mapping>
<dtml-if "_['sequence-index']==a_"> <dtml-let s_item=sequence-item s_index=sequence-index>
<dtml-if "s_index==a_">
<td bgcolor="#ffffff" valign="bottom" class="tab-small" <td bgcolor="#ffffff" valign="bottom" class="tab-small"
align="center"><font face="Verdana, Arial, Helvetica" align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
"_['sequence-item'].has_key('action')">href="&dtml-action;"<dtml-else>href="&dtml-URL1;"</dtml-if >href="&dtml-action;"<dtml-else
><dtml-if "_['sequence-item'].has_key('target')"> target="&dtml-target;"</dtml-if >href="&dtml-URL1;"</dtml-if
>><span style="color: #000000;"><strong><dtml-var "_['sequence-item']['label']"></strong></span></a>&nbsp;</font></td> ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
>><span style="color: #000000;"><strong><dtml-var "s_item['label']"
></strong></span></a>&nbsp;</font></td>
<dtml-else> <dtml-else>
<td bgcolor="#efefef" valign="bottom" class="tab-small" <td bgcolor="#efefef" valign="bottom" class="tab-small"
align="center"><font face="Verdana, Arial, Helvetica" align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
"_['sequence-item'].has_key('action')">href="&dtml-action;"<dtml-else>href="&dtml-URL1;"</dtml-if >href="&dtml-action;"<dtml-else
><dtml-if "_['sequence-item'].has_key('target')"> target="&dtml-target;"</dtml-if >href="&dtml-URL1;"</dtml-if
>><span style="color: #000000;"><strong>&dtml-label;</strong></span></a>&nbsp;</font></td> ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
>><span style="color: #000000;"><strong><dtml-var "s_item['label']"
></strong></span></a>&nbsp;</font></td>
</dtml-if> </dtml-if>
</dtml-let>
</dtml-in> </dtml-in>
</tr> </tr>
<tr> <tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment