Merge lp:~gt/sahana-agasti/relief-experiments into lp:~sahana-relief-team/sahana-agasti/trunk

Proposed by Gavin Treadgold
Status: Merged
Merge reported by: Ajay Kumar
Merged at revision: not available
Proposed branch: lp:~gt/sahana-agasti/relief-experiments
Merge into: lp:~sahana-relief-team/sahana-agasti/trunk
Diff against target: 26 lines (+3/-2)
2 files modified
inc/lib_form.inc (+2/-1)
mod/or/lib_or.inc (+1/-1)
To merge this branch: bzr merge lp:~gt/sahana-agasti/relief-experiments
Reviewer Review Type Date Requested Status
Ajay Kumar Approve
Sahana Review Team Pending
Review via email: mp+14960@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Gavin Treadgold (gt) wrote :

Proposing merge from personal branch of fix for lp:481517

Revision history for this message
Ajay Kumar (ajuonline) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'inc/lib_form.inc'
2--- inc/lib_form.inc 2009-11-10 23:51:44 +0000
3+++ inc/lib_form.inc 2009-11-17 18:05:21 +0000
4@@ -457,7 +457,8 @@
5 tabindex="<?php echo ++$shn_tabindex?>">
6 <?php
7 if($extra_opts["sort"]==true){
8- $q="select * from field_options where field_name='$opt_field' order by option_code";
9+ $sort=$extra_opts['sort'];
10+ $q="select * from field_options where field_name='" . $opt_field . "' order by " . $sort;
11 } else{
12 $q="select * from field_options where field_name='$opt_field'";
13 }
14
15=== modified file 'mod/or/lib_or.inc'
16--- mod/or/lib_or.inc 2009-11-15 01:08:03 +0000
17+++ mod/or/lib_or.inc 2009-11-17 18:05:21 +0000
18@@ -671,7 +671,7 @@
19 ?><div class="info"><?php echo _t("Select the services that your organization provides, that is what you do as an organization, or the services your organization can provide in a disaster situation. e.g. If you offer medical services select it.");?></div><br />
20 <?php }
21 $extra_opts['req']=true;
22- $extra_opts['sort']=true;
23+ $extra_opts['sort']="option_description ASC";
24 // $extra_opts['help']=_t("select the services your provide ,i.e what you do as an organization. e.g.if you are a supplier select it");
25 shn_form_opt_multi_select('opt_sector_type','','multiple="true"',$extra_opts);
26 }

Subscribers

People subscribed via source and target branches

to all changes: