Friday, 2010-03-26

*** 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_mhi04:05
*** Quits: mantisbot (~supybot@mail.moldiscovery.com) (Ping timeout: 240 seconds)04:09
Cupertinohi dhx_m04:17
dhx_mCupertino: howdy04:18
Cupertinofine tnx04:18
*** Joins: davidinc (~d5374b12@gateway/web/freenode/x-pnjoevhbuveiqgzv)04:18
Cupertinoall 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
davidincdhx_m: hi08:27
dhx_mdavidinc: hi08:27
davidincdhx_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
davidincso I want to print the selected projects08:28
davidincusing this function08:28
davidincI using multiple to select project next time user want to change project name he should see the selected project names.08:30
davidincso I thinking to highlight the selected projects08:31
davidincbut is not working for me08:31
dhx_mcheck_selected is only meant to select the first match AFAIK08:32
davidincYes08:32
davidincI send  array with contain the selected project08:33
davidincwith p_project_id08:33
dhx_mthis function looks crap to me08:34
dhx_mif(( is_string( $t_this_var ) && !is_string( $p_val ) ) ) {08:34
dhx_mif( $t_this_var === $p_val ) {08:34
dhx_mummm... that'll never be true ;)08:34
davidincSo u advice me to write08:37
davidincnew function08:38
dhx_mI'm not sure I understand what you want to do08:38
dhx_mcheck_selected is meant to set the default value of a list field in HTML forms... or similar08:38
dhx_manything other use would be incorrect08:40
dhx_msigh, mantisbt.org is down again08:41
davidincwhat 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
davidincso multiple help me to select the projects by drag08:43
dhx_mso you have a list field in the browser we're you're selecting multiple options?08:44
davidincYes using print_project_option_list08:44
dhx_mso you're giving check_selected an array of integers (project IDs) as well as a project ID to check for selection?08:45
davidincthen know I'm trying to send the array for $p_project_id parameter.08:45
davidincfetching the array form the database08:46
davidinc$f_reminders_project_id = plugin_config_get( 'reminder_projects_id' );08:47
davidinc$f_project = explode(",",$f_reminders_project_id); 08:47
davidincprint_project_option_list( $f_project);08:47
dhx_maha08:48
dhx_mplugin_config_get is returning a string of the project ID rather than an integer?08:49
dhx_mtry: $f_reminders_project_id = (int)plugin_config_get( 'reminder_projects_id' );08:49
davidincI already find the arrays08:50
dhx_mI'd have this fixed if mantisbt.org was up :)08:50
davidincdhx_m; Is it possible to highlight the selected project print_project_option_list();08:58
dhx_mplace a var_dump( $p_project_id ) at the start of print_project_option_list(...) and let me know what result you get08:58
dhx_myes08:58
dhx_mthat'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
davidincArray(4)08:59
davidincand I'm using debug08:59
dhx_mthat's your problem then08:59
dhx_mprint_project_option_list only allows you to select one option from the list09:00
dhx_mwhereas it seems like you want to have the ability to select multiple options?09:00
davidincOk know I understand09:01
davidincIt always change to the selected id09:01
davidinclike 5009:01
dhx_myou also need to make sure you're using a listbox that allows multiple selections09:02
davidinc<select name="reminder_project_id[]" multiple="multiple" size="5">09:03
dhx_mfor what you're doing you'd want to create your own code around check_selected09:03
dhx_mit'd be easy to code ;)09:03
dhx_mforeach( $t_project_ids as $t_project_id ) {09:04
dhx_moops...09:04
dhx_mforeach( $t_selected_project_ids as $t_selected_project_id ) {09:04
davidincI do this in side check_selected function09:05
dhx_mecho '<option value="' . $t_selected_project_id . '"';09:05
davidincok09:05
dhx_mcheck_selected( $t_project_ids, $t_selected_project_id );09:06
dhx_mah09:06
dhx_mthat code is wrong too :)09:06
dhx_mI hate trying to write it in IRC09:06
dhx_mI think you get the idea though09:06
dhx_mloop through *ALL* projects09:06
dhx_mand do a:09:06
dhx_mcheck_selected( $t_selected_project_ids, $t_current_project_id_from_your_loop );09:07
dhx_mie. check each project in the list to see if it's selected09: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 kirillka09:14
davidincdhx_m: Maybe you can elucidate more?09:17
*** Joins: [KK]Kirill (~Miranda@global01.vester.ru)09:18
davidinccheck_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 function09:19
dhx_mjust do it inside your own code09:19
davidincOk Thanks09:20
dhx_mIMO we need to fix check_selected so it performs much better09:20
dhx_mand works with an array of selections and an array of options09:20
davidincThat will be Gr809:21
dhx_mie. using array_merge or other more optimised approaches09:21
dhx_mat the moment if you have 1000 projects in MantisBT09:22
*** Quits: kirillka (~Miranda@global01.vester.ru) (Ping timeout: 260 seconds)09:22
dhx_mand you want to select 2009:22
dhx_mit'd require 20*1000 comparisons or worse09: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
davidincIf I have time I will create patch for this issue check-selected09:28
davidincdhx_m: And thanks09:29
dhx_mgreat09:29
dhx_mthanks09: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 kirillka09: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|away13: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
micahgIs a sub project that uses the parent's target version supposed to show the bugs on the roadmap?16:26
micahgnm, I found this in the BT: http://www.mantisbt.org/bugs/view.php?id=566816: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-16Mantisbt: hickseydr * rf39d92fcb23b /core/helper_api.php: Incorrect logic in check_selected()19:45
CIA-16Mantisbt: 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!