/** * Updates the issue fields for the specified location * * @param integer $issue_id * @param string $location The name of the location * @param array $values an array of new values */ public static function updateValues($issue_id, $location, $values) { $fields = self::getFieldsToDisplay($issue_id, $location); foreach ($fields as $field_name => $field_options) { if ($field_name == 'custom') { Custom_Field::updateFromPost(); } else { self::setValue($issue_id, $field_name, $values[$field_name]); } } }