Added a comment.
This commit is contained in:
parent
991c24a74c
commit
5a377bf421
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ public class ObjectPropertyStatementTemplateModel extends PropertyStatementTempl
|
||||||
"cmd", "delete");
|
"cmd", "delete");
|
||||||
for ( String key : data.keySet() ) {
|
for ( String key : data.keySet() ) {
|
||||||
String value = data.get(key);
|
String value = data.get(key);
|
||||||
|
// Remove an entry with a null value instead of letting it get passed
|
||||||
|
// as a param with an empty value, in order to align with behavior on
|
||||||
|
// profile page. E.g., if statement.moniker is null, a test for
|
||||||
|
// statement.moniker?? will yield different results if null on the
|
||||||
|
// profile page but an empty string on the deletion page.
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
params.put("statement_" + key, data.get(key));
|
params.put("statement_" + key, data.get(key));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue