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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-12 / +5 lines)
Lines 1-3 Link Here
1
[% USE AuthorisedValues %]
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
Lines 945-956 Link Here
945
        <label for="sort1">
946
        <label for="sort1">
946
      [% END %]
947
      [% END %]
947
      Sort 1: </label>
948
      Sort 1: </label>
948
      [% IF ( CGIsort1 ) %] 
949
      [% AuthorisedValues.BuildDropbox("sort1", "Bsort1", sort1, { class => focusAction, size => 20 } ) %]
949
        [% CGIsort1 %]
950
      [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
950
      [% ELSE %]
951
            <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" class="[% focusAction %]" />
952
	  [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
953
      [% END %]   
954
    </li>
951
    </li>
955
        [% END %]
952
        [% END %]
956
        [% UNLESS nosort2 %]
953
        [% UNLESS nosort2 %]
Lines 961-972 Link Here
961
    <label for="sort2">
958
    <label for="sort2">
962
    [% END %]
959
    [% END %]
963
    Sort 2: </label>
960
    Sort 2: </label>
964
    [% IF ( CGIsort2 ) %] 
961
    [% AuthorisedValues.BuildDropbox("sort2", "Bsort2", sort2, { class => focusAction, size => 20 } ) %]
965
      [% CGIsort2 %]
962
    [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
966
    [% ELSE %]
967
        <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" class="[% focusAction %]" />
968
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
969
    [% END %] 
970
    </li>
963
    </li>
971
        [% END %]
964
        [% END %]
972
	</ol>
965
	</ol>
(-)a/members/memberentry.pl (-3 / +1 lines)
Lines 652-660 $template->param( sort1 => $data{'sort1'}); # shouldn't this be in an "else" st Link Here
652
$CGIsort = buildCGIsort("Bsort2","sort2",$data{'sort2'});
652
$CGIsort = buildCGIsort("Bsort2","sort2",$data{'sort2'});
653
if ($CGIsort) {
653
if ($CGIsort) {
654
    $template->param(CGIsort2 => $CGIsort);
654
    $template->param(CGIsort2 => $CGIsort);
655
} else {
656
    $template->param( sort2 => $data{'sort2'});
657
}
655
}
656
$template->param( sort2 => $data{'sort2'});
658
657
659
if ($nok) {
658
if ($nok) {
660
    foreach my $error (@errors) {
659
    foreach my $error (@errors) {
661
- 

Return to bug 766