View | Details | Raw Unified | Return to bug 12133
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+6 lines)
Lines 175-180 Link Here
175
		<div class="dialog alert">
175
		<div class="dialog alert">
176
			<p>The following fields are wrong. Please fix them.</p>
176
			<p>The following fields are wrong. Please fix them.</p>
177
			<ul>
177
			<ul>
178
                        [% IF ( ERROR_child_no_guarantor ) %]
179
                                <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li>
180
                        [% END %]
181
                        [% IF ( ERROR_guarantor_is_guarantee ) %]
182
                                <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li>
183
                        [% END %]
178
			[% IF ( ERROR_login_exist ) %]
184
			[% IF ( ERROR_login_exist ) %]
179
				<li id="ERROR_login_exist">Username/password already exists.</li>
185
				<li id="ERROR_login_exist">Username/password already exists.</li>
180
			[% END %]
186
			[% END %]
(-)a/members/memberentry.pl (-1 / +4 lines)
Lines 262-270 if ( $guarantorid and ( $category_type eq 'C' || $category_type eq 'P' )) { Link Here
262
		        $newdata{$_} = $guarantordata->{$_};
262
		        $newdata{$_} = $guarantordata->{$_};
263
	        }
263
	        }
264
        }
264
        }
265
266
        push @errors, 'ERROR_guarantor_is_guarantee' if ( $guarantordata->{'guarantorid'} );
265
    }
267
    }
266
}
268
}
267
269
270
push @errors, 'ERROR_child_no_guarantor' if ( $category_type eq 'C' && !$guarantorid );
271
268
###############test to take the right zipcode, country and city name ##############
272
###############test to take the right zipcode, country and city name ##############
269
# set only if parameter was passed from the form
273
# set only if parameter was passed from the form
270
$newdata{'city'}    = $input->param('city')    if defined($input->param('city'));
274
$newdata{'city'}    = $input->param('city')    if defined($input->param('city'));
271
- 

Return to bug 12133