comanage-dev - [comanage-dev] Re: [JIRA] (CO-251) Errors on load of edit page for demographics
Subject: COmanage Developers List
List archive
[comanage-dev] Re: [JIRA] (CO-251) Errors on load of edit page for demographics
Chronological Thread
- From: Marie Huynh <>
- To: Benn Oshrin <>, comanage-dev <>
- Subject: [comanage-dev] Re: [JIRA] (CO-251) Errors on load of edit page for demographics
- Date: Fri, 17 Feb 2012 16:44:12 -0800
Oops, wrong one.
On Fri, Feb 17, 2012 at 4:41 PM, Marie Huynh
<>
wrote:
> Benn,
>
> Does this fix the errors you were getting? I'm not able to reproduce them.
>
> Marie
>
>
> ---------- Forwarded message ----------
> From: Marie Huynh (JIRA)
> <>
> Date: Fri, Feb 17, 2012 at 3:40 PM
> Subject: [JIRA] (CO-251) Errors on load of edit page for demographics
> To:
>
>
>
>
> [
> https://bugs.internet2.edu/jira/browse/CO-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425#comment-16425
> ]
>
> Marie Huynh commented on CO-251:
> --------------------------------
>
> Index: CoNsfDemographics/fields.inc
> ===================================================================
> --- CoNsfDemographics/fields.inc (revision 228)
> +++ CoNsfDemographics/fields.inc (working copy)
> @@ -58,7 +58,7 @@
> // Set hidden defaults for CO and CoPerson id so users don't need to see
> it
> $args = array('default' => $cur_co['Co']['id']);
> print $this->Form->hidden('co_id', $args). "\n";
> - $args = array('default' =>
> $this->request->params['named']['co_person_id']);
> + $args = array('default' => $this->request['data']['CoPerson']['id']);
> print $this->Form->hidden('co_person_id', $args). "\n";
>
> print "
> @@ -119,7 +119,7 @@
> </td>
> <td>
> <?php
> - $attrs['value'] = (isset($co_nsf_demographics) ?
> $co_nsf_demographics[0]['CoNsfDemographic']['citizen'] : '');
> + $attrs['value'] = (isset($co_nsf_demographics) ?
> $co_nsf_demographics[0]['CoNsfDemographic']['citizenship'] : '');
> $attrs['empty'] = false;
>
> if($e) {
> Index: Standard/edit.ctp
> ===================================================================
> --- Standard/edit.ctp (revision 228)
> +++ Standard/edit.ctp (working copy)
> @@ -47,8 +47,10 @@
> $h = _txt('op.edit-a', array(Sanitize::html($d[0][$req]['line1'])));
> elseif(isset($d[0][$req]['label']))
> $h = _txt('op.edit-a', array(Sanitize::html($d[0][$req]['label'])));
> + elseif(isset($d[0][$req]['name']))
> + $h = _txt('op.edit-a', array(Sanitize::html($d[0][$req]['name'])));
> else
> - $h = _txt('op.edit-a', array(Sanitize::html($d[0][$req]['name'])));
> + $h = _txt('op.edit');
> ?>
> <h1 class="ui-state-default"><?php echo $h; ?></h1>
>
> @@ -59,4 +61,4 @@
> 'inputDefaults' => array('label' =>
> false, 'div' => false)));
> include(APP . "View/" . $model . "/fields.inc");
> echo $this->Form->end();
> -?>
> \ No newline at end of file
> +?>
>
>
>> Errors on load of edit page for demographics
>> --------------------------------------------
>>
>> Key: CO-251
>> URL: https://bugs.internet2.edu/jira/browse/CO-251
>> Project: COmanage
>> Issue Type: Sub-task
>> Components: Registry
>> Affects Versions: COmanage Registry 0.4 (Reshaped Cake)
>> Reporter: Marie Huynh
>> Assignee: Marie Huynh
>> Labels: sprint04
>> Fix For: COmanage Registry 0.4 (Reshaped Cake)
>>
>>
>> 2012-02-16 18:57:41 Notice: Notice (8): Undefined index: name in
>> [/Applications/MAMP/htdocs/gears/trunk/app/View/Standard/edit.ctp, line 51]
>> Trace:
>> include - APP/View/Standard/edit.ctp, line 51
>> View::_render() - CORE/Cake/View/View.php, line 595
>> View::render() - CORE/Cake/View/View.php, line 362
>> Controller::render() - CORE/Cake/Controller/Controller.php, line 900
>> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 111
>> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 86
>> [main] - APP/webroot/index.php, line 96
>> 2012-02-16 18:57:41 Notice: Notice (8): Undefined index: co_person_id in
>> [/Applications/MAMP/htdocs/gears/trunk/app/View/CoNsfDemographics/fields.inc,
>> line 61]
>> Trace:
>> include - APP/View/CoNsfDemographics/fields.inc, line 61
>> include - APP/View/Standard/edit.ctp, line 60
>> View::_render() - CORE/Cake/View/View.php, line 595
>> View::render() - CORE/Cake/View/View.php, line 362
>> Controller::render() - CORE/Cake/Controller/Controller.php, line 900
>> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 111
>> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 86
>> [main] - APP/webroot/index.php, line 96
>> 2012-02-16 18:57:41 Notice: Notice (8): Undefined index: citizen in
>> [/Applications/MAMP/htdocs/gears/trunk/app/View/CoNsfDemographics/fields.inc,
>> line 122]
>> Trace:
>> include - APP/View/CoNsfDemographics/fields.inc, line 122
>> include - APP/View/Standard/edit.ctp, line 60
>> View::_render() - CORE/Cake/View/View.php, line 595
>> View::render() - CORE/Cake/View/View.php, line 362
>> Controller::render() - CORE/Cake/Controller/Controller.php, line 900
>> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 111
>> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 86
>> [main] - APP/webroot/index.php, line 96
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://bugs.internet2.edu/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
- [comanage-dev] Fwd: [JIRA] (CO-251) Errors on load of edit page for demographics, Marie Huynh, 02/17/2012
- [comanage-dev] Re: [JIRA] (CO-251) Errors on load of edit page for demographics, Marie Huynh, 02/17/2012
Archive powered by MHonArc 2.6.16.