Skip to content
Snippets Groups Projects
Commit bf7b4e44 authored by Satish's avatar Satish
Browse files

Fixes #410 - Create module using vtlib in all Profiles the "Create" option is disabled by default.

Fixes #443 - Star Follow
parent 97e8f6bd
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,9 @@ class Home_Module_Model extends Vtiger_Module_Model {
* @param <String> $type - comments, updates or all
* @return <Array>
*/
public function getHistory($pagingModel, $type='all', $userId='all', $dateFilter='') {
public function getHistory($pagingModel, $type='', $userId='', $dateFilter='') {
if(!$userId) $userId = 'all';
if(!$type) $type = 'all';
//TODO: need to handle security
$comments = array();
if($type == 'all' || $type == 'comments') {
......
......@@ -30,6 +30,7 @@ class Vtiger_SaveStar_Action extends Vtiger_Mass_Action {
$focus = CRMEntity::getInstance($module);
$focus->mode = "edit";
$focus->id = $recordId;
$focus->column_fields->startTracking();
$focus->column_fields['starred'] = $request->get('value');
$focus->insertIntoEntityTable($moduleUserSpecificTableName, $module);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment