Commit 6e5bfc2d authored by drumm's avatar drumm
Browse files

Issue #3161155: Correctly fix warning when validating a new sandbox project

parent e7a61395
......@@ -704,7 +704,7 @@ function project_release_node_validate(&$node, $form, &$form_state) {
if (!variable_get('project_release_sandbox_allow_release', TRUE) && $node->field_project_type[LANGUAGE_NONE][0]['value'] === 'sandbox') {
if (!empty($form_state['values']['field_project_has_releases'][LANGUAGE_NONE][0]['value'])) {
unset($form_state['input']['field_project_has_releases']);
form_set_value($form['field_project_has_releases'][LANGUAGE_NONE], [FALSE], $form_state);
form_set_value($form['field_project_has_releases'][LANGUAGE_NONE], [0 => ['value' => 0]], $form_state);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment