/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-fix_ajaxplorer_field_display.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-fix_ajaxplorer_field_display.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Nov 30 13:47:09 2011 UTC (13 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-63_el4_sme, smeserver-shared-folders-0_1-65_el4_sme, smeserver-shared-folders-0_1-62_el4_sme, smeserver-shared-folders-0_1-64_el4_sme, smeserver-shared-folders-0_1-61_el4_sme, smeserver-shared-folders-0_1-73_el4_sme, smeserver-shared-folders-0_1-71_el4_sme, smeserver-shared-folders-0_1-72_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-70_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-68_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-69_el4_sme, smeserver-shared-folders-0_1-60_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, smeserver-shared-folders-0_1-67_el4_sme, smeserver-shared-folders-0_1-66_el4_sme, HEAD
* Wed Nov 30 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-60.sme
- Fix Ajaxplorer field display when the form has an error

1 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm
2 --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-11-30 13:07:47.000000000 +0100
3 +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-11-30 13:09:02.000000000 +0100
4 @@ -321,9 +321,13 @@
5 if (($ajaxplorer->prop('status') || 'disabled') eq 'enabled'){
6 print_section_bar();
7 my ($enabled,$disabled) = ('','');
8 - my $share = $self->{cgi}->param('name') || '';
9 - if (($share ne '') && ($accountdb->get($share)->prop('Ajaxplorer') || 'disabled') eq 'enabled'){
10 - $enabled = ' SELECTED';
11 + my $sharename = $self->{cgi}->param('name') || '';
12 + my $share = $accountdb->get($sharename);
13 + # If share exists and Ajxplorer is enabled
14 + if ($share){
15 + if (($share->prop('Ajaxplorer') || 'disabled') eq 'enabled'){
16 + $enabled = ' SELECTED';
17 + }
18 }
19 else {
20 $disabled = ' SELECTED';

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed