Differential D16776 Diff 40412 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | if ($this->getIsCreateTransaction()) { | ||||
break; | break; | ||||
default: | default: | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
if (is_array($old) && !$old) { | if (is_array($old) && !$old) { | ||||
return true; | return true; | ||||
} | } | ||||
if (!is_array($old) && !strlen($old)) { | if (!is_array($old)) { | ||||
if (!strlen($old)) { | |||||
return true; | return true; | ||||
} | } | ||||
// The integer 0 is also uninteresting by default; this is often | |||||
// an "off" flag for something like "All Day Event". | |||||
if ($old === 0) { | |||||
return true; | |||||
} | |||||
} | |||||
break; | break; | ||||
} | } | ||||
} | } | ||||
// Hide creation transactions setting values to defaults, even if | // Hide creation transactions setting values to defaults, even if | ||||
// the old value is not empty. For example, tasks may have a global | // the old value is not empty. For example, tasks may have a global | ||||
// default view policy of "All Users", but a particular form sets the | // default view policy of "All Users", but a particular form sets the | ||||
// policy to "Administrators". The transaction corresponding to this | // policy to "Administrators". The transaction corresponding to this | ||||
▲ Show 20 Lines • Show All 1,072 Lines • Show Last 20 Lines |