Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,555 changes: 2,152 additions & 2,403 deletions composer.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('custom_fields', function (Blueprint $table) {
$table->boolean('is_gdpr_data')->default(false);
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('custom_fields', function (Blueprint $table) {
$table->dropColumn('is_gdpr_data');
});
}
};
1 change: 1 addition & 0 deletions src/App/Http/Requests/CustomFieldCreateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function rules()
'group' => 'nullable|string',
'order' => 'nullable|integer',
'renderer' => 'nullable|string',
'is_gdpr_data' => 'nullable|boolean',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/App/Http/Requests/CustomFieldUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function rules()
'group' => 'nullable|string',
'order' => 'nullable|integer',
'renderer' => 'nullable|string',
'is_gdpr_data' => 'nullable|boolean',
];

return Arr::except($rules, self::LOCKED_FOR_EDITING);
Expand Down
1 change: 1 addition & 0 deletions src/App/Http/Requests/PlainCustomFieldRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function rules()
'group' => 'nullable|string',
'order' => 'nullable|integer',
'renderer' => 'nullable|string',
'is_gdpr_data' => 'nullable|boolean',
];
}

Expand Down
1 change: 1 addition & 0 deletions src/App/Http/Requests/RemoteCustomFieldRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function rules()
'group' => 'nullable|string',
'order' => 'nullable|integer',
'renderer' => 'nullable|string',
'is_gdpr_data' => 'nullable|boolean',
'remote' => 'required|array',
'remote.url' => 'required|url',
'remote.method' => 'required|in:GET,POST,PUT',
Expand Down
1 change: 1 addition & 0 deletions src/App/Http/Requests/SelectionCustomFieldRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function rules()
'group' => 'nullable|string',
'order' => 'nullable|integer',
'renderer' => 'nullable|string',
'is_gdpr_data' => 'nullable|boolean',
'selection' => 'array',
'selection.multiselect' => 'boolean',
'values' => 'array',
Expand Down
1 change: 1 addition & 0 deletions src/App/Models/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* @property bool $required
* @property bool $hidden
* @property bool $is_searchable
* @property bool $is_gdpr_data
* @property string $group
* @property int $order
* @property string $renderer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public function creates_selection_custom_field_with_values()
$this
->postJson(route('custom-field.selection.store', 'string'), $request)
->assertJsonFragment([
'id' => 1,
'name' => $request['name'],
]);

Expand Down