Commit d1fc384f authored by Jimmy Berry's avatar Jimmy Berry
Browse files

Followup to #1299910 by dww: Check if project has releases enabled not if sandbox.

parent 20f7abe0
Loading
Loading
Loading
Loading
+2 −2
Changes for pift.pages.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -36,9 +36,9 @@ function pift_pages_description_add(&$form, $form_state, $form_id) {
 * Add testing setting.
 */
function pift_pages_project_issue_settings(&$form, $form_state) {
  // We don't want to inject any of these settings if it is a sandbox project.
  // We don't want to inject any of these settings the project has no releases.
  $project_node = node_load($form['nid']['#value']);
  if (!empty($project_node->project['sandbox'])) {
  if (empty($project_node->project_release['releases'])) {
    return;
  }