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

Contents of /rpms/smeserver-shared-folders/contribs8/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)
Sun Mar 3 22:04:39 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-80_el5_sme, smeserver-shared-folders-0_1-83_el5_sme, smeserver-shared-folders-0_1-84_el5_sme, smeserver-shared-folders-0_1-82_el5_sme, smeserver-shared-folders-0_1-87_el5_sme, smeserver-shared-folders-0_1-86_el5_sme, smeserver-shared-folders-0_1-81_el5_sme, smeserver-shared-folders-0_1-85_el5_sme, smeserver-shared-folders-0_1-79_el5_sme, HEAD
Initial import

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