using version 2.2.12
On the recurring schedule template list, when selecting one of the recurring schedules (check box) and then clicking copy, I get sent to a blank white page and it does not seem to work. This is what is found in the address bar.
http://tatooine/timetrex_standard/inter ... er=&page=1
Not sure if this is a bug or what.
recurring schedule template list, copy does not seem to work
-
- Posts: 43
- Joined: Thu Jul 17, 2008 7:05 pm
recurring schedule template list, copy does not seem to work
Last edited by scosaunders on Thu Sep 25, 2008 12:35 pm, edited 1 time in total.
-
- Posts: 43
- Joined: Thu Jul 17, 2008 7:05 pm
Thanks for providing us the exact error message, this issue will be fixed in the next version of TimeTrex.
In the mean time, if you edit /var/www/default/timetrex_standard/classes/modules/schedule/RecurringScheduleTemplateFactory.class.php around line 357 you will see a setJob function, if you replace the entire function with the following code:
Down two more functions you will see the setJobItem function, replace it with this function as well:
That should hopefully get the Schedule Template copy functionality working again.
In the mean time, if you edit /var/www/default/timetrex_standard/classes/modules/schedule/RecurringScheduleTemplateFactory.class.php around line 357 you will see a setJob function, if you replace the entire function with the following code:
Code: Select all
function setJob($id) {
$id = trim($id);
if ( $id == FALSE OR $id == 0 OR $id == '' ) {
$id = 0;
}
if ( getTTProductEdition() == TT_PRODUCT_PROFESSIONAL ) {
$jlf = new JobListFactory();
}
if ( $id == NULL
OR
$this->Validator->isResultSetWithRows( 'job',
$jlf->getByID($id),
TTi18n::gettext('Job does not exist')
) ) {
$this->data['job_id'] = $id;
return TRUE;
}
return FALSE;
}
Code: Select all
function setJobItem($id) {
$id = trim($id);
if ( $id == FALSE OR $id == 0 OR $id == '' ) {
$id = 0;
}
if ( getTTProductEdition() == TT_PRODUCT_PROFESSIONAL ) {
$jilf = new JobItemListFactory();
}
if ( $id == NULL
OR
$this->Validator->isResultSetWithRows( 'job_item',
$jilf->getByID($id),
TTi18n::gettext('Job Item does not exist')
) ) {
$this->data['job_item_id'] = $id;
return TRUE;
}
return FALSE;
}