Skip to content

Commit 463fb1b

Browse files
committed
Suppress the "... - nothing changed" status banner presented when a
form is submitted. This is triggered only when only quiet properties are changed. See: https://sourceforge.net/p/roundup/mailman/roundup-users/thread/20170421012107.E040180690%40vm71.cs.umb.edu/ with subject: [Roundup-users] Does anybody think feedback saying "nothing changed" is useful?
1 parent a317e4e commit 463fb1b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

roundup/cgi/actions.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,13 @@ def _editnodes(self, all_props, all_links):
633633
self._('%(class)s %(id)s %(properties)s edited ok')
634634
% {'class':cn, 'id':nodeid, 'properties':info})
635635
else:
636-
m.append(self._('%(class)s %(id)s - nothing changed')
637-
% {'class':cn, 'id':nodeid})
636+
# this used to produce a message like:
637+
# issue34 - nothing changed
638+
# which is confusing if only quiet properties
639+
# changed for the class/id. So don't report
640+
# anything is the user didn't explicitly change
641+
# a visible (non-quiet) property.
642+
pass
638643
else:
639644
assert props
640645

0 commit comments

Comments
 (0)