Skip to content

Commit

Permalink
Fix PHP error with default values for labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmacwhite committed May 14, 2023
1 parent a18d9be commit 14a7ecd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.0.6 2023-05-14
### Fixed
- Set default for field settings to avoid PHP error.

## 2.0.5 2022-07-04
### Added
- GraphQL support
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "supercool/tablemaker",
"description": "A user-definable table field type for Craft CMS",
"type": "craft-plugin",
"version": "2.0.5",
"version": "2.0.6",
"keywords": [
"craft",
"cms",
Expand Down
12 changes: 6 additions & 6 deletions src/fields/TableMakerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public static function displayName(): string
// Properties
// =========================================================================

public string $columnsLabel;
public string $columnsInstructions;
public string $columnsAddRowLabel;
public string $rowsLabel;
public string $rowsInstructions;
public string $rowsAddRowLabel;
public string $columnsLabel = '';
public string $columnsInstructions = '';
public string $columnsAddRowLabel = '';
public string $rowsLabel = '';
public string $rowsInstructions = '';
public string $rowsAddRowLabel = '';


// Public Methods
Expand Down

0 comments on commit 14a7ecd

Please sign in to comment.