function prepareInputForAdd($input)
{
if (!isset($this->fields['softwares_id']) || !$this->fields['softwares_id']) {
Session::addMessageAfterRedirect(__("Please select a software for this license"), true, ERROR, true);
return false;
}
if (isset($input["id"]) && $input["id"] > 0) {
$input["_oldID"] = $input["id"];
}
unset($input['id']);
unset($input['withtemplate']);
// Unset to set to default using mysql default value
if (empty($input['expire'])) {
unset($input['expire']);
}
return $input;
}