Skip to content
Snippets Groups Projects
Commit 4c164299 authored by Uma's avatar Uma
Browse files

Merge branch 'Migraton_Error' into 'master'

Fixes #1295 Signature warnings and undefined constant

See merge request !643
parents b8bb34cf 109c1457
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,7 @@ class Calendar_DragDropAjax_Action extends Calendar_SaveAjax_Action {
$resultDateTime = $this->changeDateTime($oldEndDateTime,$dayDelta,$minuteDelta,$secondsDelta);
$parts = explode(' ',$resultDateTime);
$record->set('due_date',$parts[0]);
if(activitytype != 'Task') {
if($activitytype != 'Task') {
$record->set('time_end',$parts[1]);
}
......
......@@ -25,7 +25,7 @@ class Migration_Module_Model extends Vtiger_Module_Model {
* Static Function to get the instance of Vtiger Module Model for the given id or name
* @param mixed id or name of the module
*/
public static function getInstance($value) {
public static function getInstance($value=null) {
return new self($value);
}
......
......@@ -131,7 +131,7 @@ class Reports_Record_Model extends Vtiger_Record_Model {
* @param <String> $module
* @return <Reports_Record_Model>
*/
public static function getInstanceById($recordId) {
public static function getInstanceById($recordId, $module=null) {
$db = PearDatabase::getInstance();
$self = new self();
......
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