Skip to content

Commit

Permalink
Fix date end
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Nov 8, 2023
1 parent 35c8957 commit df07a1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions front/resource.remove.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
}

if (empty($_POST["date_end"])) {
if(isset($_POST["resignation_date"]) && !empty($_POST["resignation_date"]) ) {
if (isset($_POST["resignation_date"]) && !empty($_POST["resignation_date"]) ) {
$_POST["date_end"] = $_POST["resignation_date"];
}else {
} else if (isset($_POST["effective_leaving_date"]) && !empty($_POST["effective_leaving_date"]) ) {
$_POST["date_end"] = $_POST["effective_leaving_date"];
} else {
$_POST["date_end"] = date("Y-m-d");
}

}

$resource = new PluginResourcesResource();
Expand Down

0 comments on commit df07a1b

Please sign in to comment.