* Finish task #1160.
This commit is contained in:
@@ -553,6 +553,20 @@ class todo extends control
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* AJAX: get program id.
|
||||
*
|
||||
* @param int $objectID
|
||||
* @param varchar $objectType
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function ajaxGetProgramID($objectID, $objectType)
|
||||
{
|
||||
$table = $objectType == 'project' ? TABLE_PROJECT : TABLE_PRODUCT;
|
||||
die($this->dao->select('program')->from($table)->where('id')->eq($objectID)->fetch('program'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create cycle.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user