- If no custom fields were setup, an empty query error would be thrown [newreport.php#130]
- If no custom fields were present, adding an automation would fail [admin/automation.php#74]
- Remove a warning when saving a usergroup and there are no custom fields present [admin/usergroup.php#221]
+- Update cached usernames when the display name changes
1.1.0 Release Candidate 1
===============================
*/
function post_update()
{
+ $username = $this->registry->escape($this->values['displayname']);
+ $id = $this->values['userid'];
+
+ $this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET username = '$username' WHERE userid = $id");
+ $this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET lastpostbyname = '$username' WHERE lastpostby = $id");
+ $this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET hiddenlastpostbyname = '$username' WHERE hiddenlastpostby = $id");
+
build_assignedto();
}