Skip to content

Commit

Permalink
Fix condition for rendering copy/cut/paste buttons.
Browse files Browse the repository at this point in the history
Not to self: `not:` has a lower precedence than `|`.
  • Loading branch information
Michael Howitz authored and dwt committed Jun 12, 2018
1 parent 0ad2f9f commit 3260777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OFS/zpt/main.zpt
Expand Up @@ -83,7 +83,7 @@
tal:define="
delete_allowed python:sm.checkPermission('Delete objects', context)"
tal:condition="ids">
<tal:copy-paste condition="not:context/dontAllowCopyAndPaste | default">
<tal:copy-paste condition="not:context/dontAllowCopyAndPaste|nothing">
<input class="btn btn-outline-secondary"
type="submit"
name="manage_renameForm:method"
Expand Down Expand Up @@ -122,7 +122,7 @@
There are currently no items in <em tal:content="here/title_or_id"></em>.
</div>
<div class="form-group">
<tal:copy-paste condition="not:context/dontAllowCopyAndPaste | default">
<tal:copy-paste condition="not:context/dontAllowCopyAndPaste|nothing">
<input class="btn btn-outline-secondary"
type="submit"
name="manage_pasteObjects:method"
Expand Down

0 comments on commit 3260777

Please sign in to comment.