* @access private
*/
var $fields = array(
- 'keystring' => array(TYPE_STR, REQ_YES, ':self'),
+ 'keystring' => array(TYPE_STR, REQ_AUTO),
'title' => array(TYPE_STR, REQ_YES, 'verify_noempty'),
'body' => array(TYPE_STR, REQ_YES)
);
);
}
+ // ###################################################################
+ /**
+ * Pre-insert
+ *
+ * @access private
+ */
+ function pre_insert()
+ {
+ if (($err = $this->verify_keystring()) !== true)
+ {
+ $this->error($err);
+ }
+ }
+
// ###################################################################
/**
* Post-insert
build_automations();
echo "Rebuilding the automations cahce<br />\n";
+
+ $topic = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "fieldhelp WHERE keystring = 'newreply'");
+ if (md5($topic['body']) == '7e1154340454ca6d8f8ba47aab057c23')
+ {
+ $topic = $db->query("UPDATE " . TABLE_PREFIX . "fieldhelp SET body = 'Here you can specify additional comments. If you do not change any fields, this will merely attach a comment.
+
+The \"Automation\" drop-down next to this box (which may be hidden) will allow you to perform a common task. These administrator-defined tasks can change any of the bug fields automatically and then add an automatic reply. If you change a field that will be altered by the action, the action\'s change will take precedence. Also, if you enter a comment and the action specifies a comment, the automatic comment will be attached to yours.' WHERE keystring = 'newreply'");
+ echo "Updating user help topic on new replies<br />\n";
+ }
+ else
+ {
+ echo "<strong>ALERT:</strong> You have modified your user help topic for <em>newreply</em> which means that the help item was not updated for the renaming of 'Automatic Action' to 'Automation'<br />\n";
+ }
}
// ###################################################################