Fixed errors with Deeds. Adding and Updating Deeds is now working again

git-svn-id: https://rosehill.googlecode.com/svn/trunk@59 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
inghamn 2010-01-28 15:29:37 +00:00
parent 25468f1a37
commit 31e05accab
3 changed files with 3 additions and 4 deletions

View File

@ -33,7 +33,8 @@
</td> </td>
</tr> </tr>
<tr><td><label for="deed-issueDate">Date Issued</label></td> <tr><td><label for="deed-issueDate">Date Issued</label></td>
<td><input name="deed[issueDate]" size="10" /></td> <td><input name="deed[issueDate]" size="10" value="<?php echo date('n/j/Y'); ?>" />
</td>
</tr> </tr>
<tr><td><label for="deed-notes">notes</label></td> <tr><td><label for="deed-notes">notes</label></td>
<td><textarea name="deed[notes]" id="deed-notes" rows="3" cols="60"></textarea> <td><textarea name="deed[notes]" id="deed-notes" rows="3" cols="60"></textarea>

View File

@ -23,7 +23,7 @@
$selected = $this->deed->getCemetery_id()==$cemetery->getId() $selected = $this->deed->getCemetery_id()==$cemetery->getId()
? 'selected="selected"' ? 'selected="selected"'
: ''; : '';
echo "<option value=\"{$cemetery->getId()}\">$name</option>"; echo "<option value=\"{$cemetery->getId()}\" $selected>$name</option>";
} }
?> ?>
</select> </select>

View File

@ -4,8 +4,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov> * @author Cliff Ingham <inghamn@bloomington.in.gov>
*/ */
verifyUser('Administrator');
if (!userIsAllowed('Deeds')) { if (!userIsAllowed('Deeds')) {
$_SESSION['errorMessages'][] = new Exception('noAccessAllowed'); $_SESSION['errorMessages'][] = new Exception('noAccessAllowed');
header('Location: '.BASE_URL.'/deeds'); header('Location: '.BASE_URL.'/deeds');