?
avatar PhilETaylor
PhilETaylor
19 Nov 2017

Steps to reproduce the issue

install [4.0Alpha2] with no sample data
Attempt to create a custom field

Expected result

Field saved

Actual result

screen shot 2017-11-19 at 17 25 19

System information (as much as possible)

http://screenshot.myjoom.la/3w1F2K2y1f05

avatar PhilETaylor PhilETaylor - open - 19 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 19 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Nov 2017
Title
[4.0Alpha2] Cannot save custom field
[4.0] Cannot save custom field
avatar joomla-cms-bot joomla-cms-bot - edited - 19 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Nov 2017
Category com_fields
avatar phalouvas
phalouvas - comment - 20 Nov 2017

False name of table. Chaned and tested ok.

Patch for resolving is this:

diff --git a/administrator/components/com_fields/Table/FieldTable.php b/administrator/components/com_fields/Table/FieldTable.php
index c7bc876..0efd355 100644
--- a/administrator/components/com_fields/Table/FieldTable.php
+++ b/administrator/components/com_fields/Table/FieldTable.php
@@ -112,7 +112,7 @@
$this->name = str_replace(',', '-', $this->name);

	// Verify that the name is unique
  •   $table = new Field($this->_db);
    
  •   $table = new FieldTable($this->_db);
    
      if ($table->load(array('name' => $this->name)) && ($table->id != $this->id || $this->id == 0))
      {
    
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Nov 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-11-20 08:14:13
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2017
Closed_Date 2017-11-20 08:14:13 2017-11-20 08:14:14
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 20 Nov 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 20 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Nov 2017

closed as having Pull Request #18742

Add a Comment

Login with GitHub to post a comment