Hello,
I need to disable the edit option after 60 days. I have tried the plugin "caneditrow" in list, but i can't make it work:
the value for "diff" in this case is 162 days. I don't know what should happen next, the icon for Edit will be hidden?
Thank you
I need to disable the edit option after 60 days. I have tried the plugin "caneditrow" in list, but i can't make it work:
Code:
$nowdate = strtotime("{aplicatii_churn_icp_detalii___LAST_UPDATE}");
$thendate = strtotime("today");
$datediff = ($thendate - $nowdate);
$diff = round($datediff / 86400);
if ($diff > 60) {
return false;
}else {
return true;
}
the value for "diff" in this case is 162 days. I don't know what should happen next, the icon for Edit will be hidden?
Thank you