* Finish task #1160.

This commit is contained in:
sgm0422
2020-07-21 14:35:48 +08:00
parent 12e107d40a
commit cd6b5caa61
3 changed files with 44 additions and 11 deletions
+14
View File
@@ -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.
*