mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #4234 from turbo124/v5-develop
Fixes for task status id on update
This commit is contained in:
commit
a11dd92fba
@ -50,6 +50,10 @@ class UpdateTaskRequest extends Request
|
|||||||
{
|
{
|
||||||
$input = $this->decodePrimaryKeys($this->all());
|
$input = $this->decodePrimaryKeys($this->all());
|
||||||
|
|
||||||
|
if (array_key_exists('status_id', $input) && is_string($input['status_id'])) {
|
||||||
|
$input['status_id'] = $this->decodePrimaryKey($input['status_id']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->replace($input);
|
$this->replace($input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,15 +41,17 @@ class RefundCancelledAccount implements ShouldQueue
|
|||||||
|
|
||||||
$plan_details = $this->account->getPlanDetails();
|
$plan_details = $this->account->getPlanDetails();
|
||||||
|
|
||||||
/* Trial user cancelling early.... */
|
if(!$plan_details)
|
||||||
if ($plan_details['trial_active']) {
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
/* Is the plan Active? */
|
/* Trial user cancelling early.... */
|
||||||
if (! $plan_details['active']) {
|
if ($plan_details['trial_plan'])
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
/* Is the plan Active? */
|
||||||
|
if (! $plan_details['active'])
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
/* Refundable client! */
|
/* Refundable client! */
|
||||||
|
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class TasksTableProjectNullable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('projects', function(Blueprint $table) {
|
||||||
|
|
||||||
|
$table->unsignedInteger('assigned_user_id')->nullable()->change();
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user