czarrar / baby-database

Automatically exported from code.google.com/p/baby-database
0 stars 0 forks source link

Scheduling specific baby brings up fatal error #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (i.e. what is an example search or
form submission that will produce the problem, please give all details)?
1. trying to schedule specific baby using schedule appointments & serial number
2. enter study, wait to reload, then enter serial and 'get records'
3.

What is the expected output? What do you see instead?

Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with
message 'Cannot find babies who will be in this age range (0000-06-07 to
0000-06-20) because study dates (2009-07-12 to 2009-07-19) are too far
apart' in
/home/wpl/public_html/babydb/app/modules/default/controllers/Appointment2Control
ler.php:772
Stack trace: #0
/home/wpl/public_html/babydb/app/modules/default/controllers/Appointment2Control
ler.php(491):
Appointment2Controller->_prepareScheduleQuery() #1
/home/wpl/public_html/babydb/library/Zend/Controller/Action.php(502):
Appointment2Controller->scheduleAction() #2
/home/wpl/public_html/babydb/library/Zend/Controller/Dispatcher/Standard.php(293
):
Zend_Controller_Action->dispatch('scheduleAction') #3
/home/wpl/public_html/babydb/library/Zend/Controller/Front.php(914):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Htt
p),
Object(Zend_Controller_Response_Http)) #4
/home/wpl/public_html/babydb/application.php(201):
Zend_Controller_Front->dispatch() #5 /home/wpl/public_html/ba in
/home/wpl/public_html/babydb/app/modules/default/controllers/Appointment2Control
ler.php
on line 772 

If you have a hunch or know what the problem is, what is it?

Not sure if this is actually a problem or if I am doing something wrong,
but it seems to me that i should be able to do what i described above and
be able to schedule for a specific baby

Please provide any additional information below.

Original issue reported on code.google.com by cstarm...@gmail.com on 11 Jul 2009 at 2:18

GoogleCodeExporter commented 8 years ago
So you get that error because the baby needs to be in the specified age range 
for
every day of the study dates (i.e. 7/12 - 7/19). To have an age range that 
spans for
13 days, you need to have a study date range of at least 13 days. You can also 
just
select ignore study dates. Let me know if that works.

Original comment by czar...@gmail.com on 13 Jul 2009 at 6:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
bumping up this issue to confirm that this is ok.

Original comment by czar...@gmail.com on 24 Jul 2009 at 5:57

GoogleCodeExporter commented 8 years ago
this is ok.

Original comment by cstarm...@gmail.com on 24 Jul 2009 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by czar...@gmail.com on 24 Jul 2009 at 10:07

GoogleCodeExporter commented 8 years ago

Original comment by czar...@gmail.com on 22 Sep 2010 at 7:13