From ca6a8106bf3092480a6036ac351aaa6e34931d07 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 9 May 2012 10:18:22 -0400 Subject: Fix validation for pasting in a patch alone, make sure not to offer re-fetch if location is blank. version bump. --- config/systempatches/system_patches.php | 2 +- config/systempatches/system_patches_edit.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'config/systempatches') diff --git a/config/systempatches/system_patches.php b/config/systempatches/system_patches.php index a10cb0bc..2cb6abf9 100644 --- a/config/systempatches/system_patches.php +++ b/config/systempatches/system_patches.php @@ -221,7 +221,7 @@ foreach ($a_patches as $thispatch): - + diff --git a/config/systempatches/system_patches_edit.php b/config/systempatches/system_patches_edit.php index 32318620..a4038b05 100644 --- a/config/systempatches/system_patches_edit.php +++ b/config/systempatches/system_patches_edit.php @@ -75,8 +75,8 @@ if ($_POST) { /* input validation */ if(empty($_POST['location'])) { - $reqdfields = explode(" ", " patch"); - $reqdfieldsn = array(gettext("Description"),gettext("Patch Contents")); + $reqdfields = explode(" ", "patch"); + $reqdfieldsn = array(gettext("Patch Contents")); } else { $reqdfields = explode(" ", "descr location"); $reqdfieldsn = array(gettext("Description"),gettext("URL/Commit ID")); -- cgit v1.2.3