*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 00:31 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 265 seconds) | 00:40 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 01:06 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 276 seconds) | 01:15 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 01:41 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 265 seconds) | 01:49 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 02:16 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 260 seconds) | 02:24 | |
*** Joins: kirillka (~Miranda@global01.vester.ru) | 02:49 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 02:51 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 265 seconds) | 02:59 | |
*** Quits: siebrand (~beis@sm.xs4all.nl) () | 03:00 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 03:26 | |
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino) | 03:32 | |
*** Joins: giallu (~giallu@fedora/giallu) | 03:33 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 276 seconds) | 03:35 | |
*** Parts: b-baermann (~chatzilla@p578b114e.dip0.t-ipconnect.de) | 03:45 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 04:01 | |
dhx_m | hi | 04:05 |
---|---|---|
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 240 seconds) | 04:09 | |
Cupertino | hi dhx_m | 04:17 |
dhx_m | Cupertino: howdy | 04:18 |
Cupertino | fine tnx | 04:18 |
*** Joins: davidinc (~d5374b12@gateway/web/freenode/x-pnjoevhbuveiqgzv) | 04:18 | |
Cupertino | all is good :) | 04:18 |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 04:36 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 252 seconds) | 04:45 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 05:14 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 276 seconds) | 05:23 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 05:56 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 265 seconds) | 06:04 | |
*** Joins: mantisbot (~supybot@mail.moldiscovery.com) | 06:32 | |
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 265 seconds) | 06:40 | |
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...) | 08:13 | |
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino) | 08:14 | |
davidinc | dhx_m: hi | 08:27 |
dhx_m | davidinc: hi | 08:27 |
davidinc | dhx_m: on check_selected function If $p_var is an array, then if any member is equal to $p_val we PRINT SELECTED. | 08:28 |
davidinc | so I want to print the selected projects | 08:28 |
davidinc | using this function | 08:28 |
davidinc | I using multiple to select project next time user want to change project name he should see the selected project names. | 08:30 |
davidinc | so I thinking to highlight the selected projects | 08:31 |
davidinc | but is not working for me | 08:31 |
dhx_m | check_selected is only meant to select the first match AFAIK | 08:32 |
davidinc | Yes | 08:32 |
davidinc | I send array with contain the selected project | 08:33 |
davidinc | with p_project_id | 08:33 |
dhx_m | this function looks crap to me | 08:34 |
dhx_m | if(( is_string( $t_this_var ) && !is_string( $p_val ) ) ) { | 08:34 |
dhx_m | if( $t_this_var === $p_val ) { | 08:34 |
dhx_m | ummm... that'll never be true ;) | 08:34 |
davidinc | So u advice me to write | 08:37 |
davidinc | new function | 08:38 |
dhx_m | I'm not sure I understand what you want to do | 08:38 |
dhx_m | check_selected is meant to set the default value of a list field in HTML forms... or similar | 08:38 |
dhx_m | anything other use would be incorrect | 08:40 |
dhx_m | sigh, mantisbt.org is down again | 08:41 |
davidinc | what I want is after selecting the specific projects. Those project should stay selected next time I want to activate project I can see with project are selected before? | 08:42 |
davidinc | so multiple help me to select the projects by drag | 08:43 |
dhx_m | so you have a list field in the browser we're you're selecting multiple options? | 08:44 |
davidinc | Yes using print_project_option_list | 08:44 |
dhx_m | so you're giving check_selected an array of integers (project IDs) as well as a project ID to check for selection? | 08:45 |
davidinc | then know I'm trying to send the array for $p_project_id parameter. | 08:45 |
davidinc | fetching the array form the database | 08:46 |
davidinc | $f_reminders_project_id = plugin_config_get( 'reminder_projects_id' ); | 08:47 |
davidinc | $f_project = explode(",",$f_reminders_project_id); | 08:47 |
davidinc | print_project_option_list( $f_project); | 08:47 |
dhx_m | aha | 08:48 |
dhx_m | plugin_config_get is returning a string of the project ID rather than an integer? | 08:49 |
dhx_m | try: $f_reminders_project_id = (int)plugin_config_get( 'reminder_projects_id' ); | 08:49 |
davidinc | I already find the arrays | 08:50 |
dhx_m | I'd have this fixed if mantisbt.org was up :) | 08:50 |
davidinc | dhx_m; Is it possible to highlight the selected project print_project_option_list(); | 08:58 |
dhx_m | place a var_dump( $p_project_id ) at the start of print_project_option_list(...) and let me know what result you get | 08:58 |
dhx_m | yes | 08:58 |
dhx_m | that's the purpose of the first argument (which BTW can be left null if you want to use the user's currently selected project) | 08:59 |
davidinc | Array(4) | 08:59 |
davidinc | and I'm using debug | 08:59 |
dhx_m | that's your problem then | 08:59 |
dhx_m | print_project_option_list only allows you to select one option from the list | 09:00 |
dhx_m | whereas it seems like you want to have the ability to select multiple options? | 09:00 |
davidinc | Ok know I understand | 09:01 |
davidinc | It always change to the selected id | 09:01 |
davidinc | like 50 | 09:01 |
dhx_m | you also need to make sure you're using a listbox that allows multiple selections | 09:02 |
davidinc | <select name="reminder_project_id[]" multiple="multiple" size="5"> | 09:03 |
dhx_m | for what you're doing you'd want to create your own code around check_selected | 09:03 |
dhx_m | it'd be easy to code ;) | 09:03 |
dhx_m | foreach( $t_project_ids as $t_project_id ) { | 09:04 |
dhx_m | oops... | 09:04 |
dhx_m | foreach( $t_selected_project_ids as $t_selected_project_id ) { | 09:04 |
davidinc | I do this in side check_selected function | 09:05 |
dhx_m | echo '<option value="' . $t_selected_project_id . '"'; | 09:05 |
davidinc | ok | 09:05 |
dhx_m | check_selected( $t_project_ids, $t_selected_project_id ); | 09:06 |
dhx_m | ah | 09:06 |
dhx_m | that code is wrong too :) | 09:06 |
dhx_m | I hate trying to write it in IRC | 09:06 |
dhx_m | I think you get the idea though | 09:06 |
dhx_m | loop through *ALL* projects | 09:06 |
dhx_m | and do a: | 09:06 |
dhx_m | check_selected( $t_selected_project_ids, $t_current_project_id_from_your_loop ); | 09:07 |
dhx_m | ie. check each project in the list to see if it's selected | 09:07 |
*** Quits: davidinc (~d5374b12@gateway/web/freenode/x-pnjoevhbuveiqgzv) (Ping timeout: 252 seconds) | 09:12 | |
*** Joins: [KK]Kirill (~Miranda@global01.vester.ru) | 09:13 | |
*** Joins: davidinc (~d5374b12@gateway/web/freenode/x-bpekajkewscboifv) | 09:13 | |
*** Quits: kirillka (~Miranda@global01.vester.ru) (Disconnected by services) | 09:14 | |
*** [KK]Kirill is now known as kirillka | 09:14 | |
davidinc | dhx_m: Maybe you can elucidate more? | 09:17 |
*** Joins: [KK]Kirill (~Miranda@global01.vester.ru) | 09:18 | |
davidinc | check_selected( $t_selected_project_ids, $t_current_project_id_from_your_loop ); you want me to do this inside mantis code or write my own function | 09:19 |
dhx_m | just do it inside your own code | 09:19 |
davidinc | Ok Thanks | 09:20 |
dhx_m | IMO we need to fix check_selected so it performs much better | 09:20 |
dhx_m | and works with an array of selections and an array of options | 09:20 |
davidinc | That will be Gr8 | 09:21 |
dhx_m | ie. using array_merge or other more optimised approaches | 09:21 |
dhx_m | at the moment if you have 1000 projects in MantisBT | 09:22 |
*** Quits: kirillka (~Miranda@global01.vester.ru) (Ping timeout: 260 seconds) | 09:22 | |
dhx_m | and you want to select 20 | 09:22 |
dhx_m | it'd require 20*1000 comparisons or worse | 09:22 |
*** Quits: Zeeshan_M (developer@o.je) (Read error: Connection reset by peer) | 09:23 | |
*** Quits: [KK]Kirill (~Miranda@global01.vester.ru) (Ping timeout: 268 seconds) | 09:25 | |
*** Joins: Zeeshan_M (developer@o.je) | 09:26 | |
davidinc | If I have time I will create patch for this issue check-selected | 09:28 |
davidinc | dhx_m: And thanks | 09:29 |
dhx_m | great | 09:29 |
dhx_m | thanks | 09:29 |
*** Joins: kirillka (~Miranda@global01.vester.ru) | 09:43 | |
*** Joins: [KK]Kirill (~Miranda@global01.vester.ru) | 09:44 | |
*** Quits: kirillka (~Miranda@global01.vester.ru) (Disconnected by services) | 09:44 | |
*** [KK]Kirill is now known as kirillka | 09:44 | |
*** Parts: nahuel (~nahuel@unaffiliated/vanzetti) | 09:48 | |
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) | 10:15 | |
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Client Quit) | 10:17 | |
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) | 10:17 | |
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka) | 11:04 | |
*** Quits: davidinc (~d5374b12@gateway/web/freenode/x-bpekajkewscboifv) (Ping timeout: 252 seconds) | 11:10 | |
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...) | 11:54 | |
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 265 seconds) | 12:40 | |
*** Joins: siebrand (~beis@sm.xs4all.nl) | 13:01 | |
*** Joins: moto-moi (~hylke@cara.xs4all.nl) | 13:04 | |
*** Joins: cobexer (~cobexer@91-113-127-231.adsl.highway.telekom.at) | 13:06 | |
*** Quits: Jinx (Dojo@unaffiliated/jinx) (Quit: perpetual reboot) | 13:08 | |
*** cobexer is now known as \cobexer|away | 13:25 | |
*** Joins: snowyrooftops (swarcher@de2-as20112.alshamil.net.ae) | 13:32 | |
*** Quits: snowyrooftops (swarcher@de2-as20112.alshamil.net.ae) (Client Quit) | 13:36 | |
*** Joins: wolog (~wolog@AOrleans-152-1-38-234.w90-21.abo.wanadoo.fr) | 13:58 | |
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth) | 14:59 | |
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Read error: Connection reset by peer) | 15:00 | |
*** Joins: giallu (~giallu@fedora/giallu) | 15:04 | |
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth) | 15:23 | |
*** Joins: micahg (~micah@ubuntu/member/micahg) | 16:26 | |
micahg | Is a sub project that uses the parent's target version supposed to show the bugs on the roadmap? | 16:26 |
micahg | nm, I found this in the BT: http://www.mantisbt.org/bugs/view.php?id=5668 | 16:28 |
*** Parts: micahg (~micah@ubuntu/member/micahg) | 16:29 | |
*** Joins: cobexer (~cobexer@91-113-120-45.adsl.highway.telekom.at) | 17:05 | |
*** Quits: \cobexer|away (~cobexer@91-113-127-231.adsl.highway.telekom.at) (Read error: Operation timed out) | 17:06 | |
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Quit: daryn) | 17:36 | |
*** Quits: cobexer (~cobexer@91-113-120-45.adsl.highway.telekom.at) (Remote host closed the connection) | 18:27 | |
*** Joins: mourisj (~mourisj@94.252.114.129) | 18:28 | |
*** Quits: mourisj (~mourisj@94.252.114.129) (Remote host closed the connection) | 18:28 | |
*** Quits: wolog (~wolog@AOrleans-152-1-38-234.w90-21.abo.wanadoo.fr) (Ping timeout: 246 seconds) | 19:36 | |
CIA-16 | Mantisbt: hickseydr * rf39d92fcb23b /core/helper_api.php: Incorrect logic in check_selected() | 19:45 |
CIA-16 | Mantisbt: hickseydr master-1.2.x * r9fbbd86e5f40 /core/helper_api.php: Incorrect logic in check_selected() | 19:45 |
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat) | 19:46 | |
*** Joins: wolog (~wolog@AOrleans-152-1-25-218.w90-21.abo.wanadoo.fr) | 19:49 | |
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer) | 19:54 | |
*** Quits: scribe9343423 (~scribe934@mantisforge.org) (Remote host closed the connection) | 19:59 | |
*** Joins: scribe9343423 (~scribe934@mantisforge.org) | 20:00 | |
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Remote host closed the connection) | 22:28 | |
*** Joins: daryn (~INTERACT\@h253.102.141.67.dynamic.ip.windstream.net) | 22:48 | |
*** Joins: nuclear_eclipse (~jreese@leetcode.net) | 23:05 |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!