diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-09-11 23:13:52 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-09-11 23:13:52 +0100 |
| commit | 315d2bbb26083e026521837fec041199c0344b49 (patch) | |
| tree | 4e083b37b55b686e476bcdf93e28f99fadb63162 /includes | |
| parent | 3065f703f6161309af5f1708c5c2e471080c560a (diff) | |
| download | webtrees-315d2bbb26083e026521837fec041199c0344b49.tar.gz webtrees-315d2bbb26083e026521837fec041199c0344b49.tar.bz2 webtrees-315d2bbb26083e026521837fec041199c0344b49.zip | |
#1217375 - Add new individual - note/media/source not saved
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_edit.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index ef3766ab00..8bd1626188 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -714,12 +714,12 @@ function add_simple_tag($tag, $upperlevel='', $label='', $extra=null) { $level2_checked=''; } if (strpos($bdm, 'B')!==false) { - echo ' <input type="checkbox" name="SOUR_INDI" ', $level1_checked, ' value="Y">'; + echo ' <input type="checkbox" name="SOUR_INDI" ', $level1_checked, ' value="1">'; echo WT_I18N::translate('Individual'); if (preg_match_all('/('.WT_REGEX_TAG.')/', $QUICK_REQUIRED_FACTS, $matches)) { foreach ($matches[1] as $match) { if (!in_array($match, explode('|', WT_EVENTS_DEAT))) { - echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="Y">'; + echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="1">'; echo WT_Gedcom_Tag::getLabel($match); } } @@ -729,18 +729,18 @@ function add_simple_tag($tag, $upperlevel='', $label='', $extra=null) { if (preg_match_all('/('.WT_REGEX_TAG.')/', $QUICK_REQUIRED_FACTS, $matches)) { foreach ($matches[1] as $match) { if (in_array($match, explode('|', WT_EVENTS_DEAT))) { - echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="Y">'; + echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="1">'; echo WT_Gedcom_Tag::getLabel($match); } } } } if (strpos($bdm, 'M')!==false) { - echo ' <input type="checkbox" name="SOUR_FAM" ', $level1_checked, ' value="Y">'; + echo ' <input type="checkbox" name="SOUR_FAM" ', $level1_checked, ' value="1">'; echo WT_I18N::translate('Family'); if (preg_match_all('/('.WT_REGEX_TAG.')/', $QUICK_REQUIRED_FAMFACTS, $matches)) { foreach ($matches[1] as $match) { - echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="Y">'; + echo ' <input type="checkbox" name="SOUR_', $match, '"', $level2_checked, ' value="1">'; echo WT_Gedcom_Tag::getLabel($match); } } |
