? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
19 Apr 2017

Pull Request for Issue #15394 .

Summary of Changes

make sure that the integer field type is usable

Testing Instructions

BEFORE PR
On a Clean install
Create a content field of type integer. DO not set any values in the First, Last or Step fields
Try to use the field in an article

Expected result

The field has the first, last and step values from the plugin of 1, 100, 1

Actual result

The field can not be used

This PR

This PR insures that the default values of 1,100,1 are set for the params in the database on install.

Testing

This cannot be tested with com_patchtester as it just modifies the sql file that is run on install.

You can test it by manually inserting
{"multiple":"0","first":"1","last":"100","step":"1"} in the params field for plg_fields_integer in the #__extensions table

avatar brianteeman brianteeman - open - 19 Apr 2017
avatar brianteeman brianteeman - change - 19 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2017
Category SQL Installation Postgresql MS SQL
avatar brianteeman brianteeman - change - 19 Apr 2017
The description was changed
avatar brianteeman brianteeman - edited - 19 Apr 2017
avatar brianteeman
brianteeman - comment - 19 Apr 2017

@rdeutz @zero-24 This really needs to be merged into 3.7.0 or the integer field is pretty useless

avatar rdeutz
rdeutz - comment - 19 Apr 2017

At least one test would good before we merge it

avatar brianteeman
brianteeman - comment - 19 Apr 2017

@rdeutz absolutely I wasnt suggesting otherwise - just that it needs to be merged in 3.7.0 when it is tested

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Apr 2017

will test in a couple of Minutes.

c0c87cd 19 Apr 2017 avatar brianteeman typo
avatar brianteeman brianteeman - change - 19 Apr 2017
Labels Added: ?
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Apr 2017

@brianteeman

  • applied {"multiple":"0","first":"1","last":"100","step":"1"} in params of plg_fields_integer
  • new Field "Integer" > Dropdown isn't clickable.
avatar brianteeman
brianteeman - comment - 19 Apr 2017

in the extensions table?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Apr 2017

sorry, wrong Table. In "_extensions" i can't find a plg_fields_integer-Field and dont know how to append it.

avatar brianteeman
brianteeman - comment - 19 Apr 2017

If you dont have a record for the plugin then you have done something very wrong with your install

screenshotr11-13-56

avatar zero-24
zero-24 - comment - 19 Apr 2017

Don't we also need to add that to the initial update sql file?

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 19 Apr 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Apr 2017

I have tested this item successfully on c0c87cd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15403.

avatar brianteeman
brianteeman - comment - 19 Apr 2017

@zero-24 why do we need it in the update - there is no update path from a beta or RC release and these fields never existed before

avatar Bakual
Bakual - comment - 19 Apr 2017

@brianteeman Tobias means here: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/sql/updates/mysql/3.7.0-2016-08-29.sql#L84
and in the respective other two files.
That is needed for updates, the one you did is for new installs which is of course needed as well.

avatar brianteeman
brianteeman - comment - 19 Apr 2017

got it - update coming

avatar Bakual
Bakual - comment - 19 Apr 2017

Yes, that will work since we don't support (yet) updating from RCs.

avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2017
Category SQL Installation Postgresql MS SQL SQL Administration com_admin Postgresql MS SQL Installation
avatar brianteeman
brianteeman - comment - 19 Apr 2017

@zero-24 update scripts done

avatar Quy Quy - test_item - 19 Apr 2017 - Tested successfully
avatar Quy
Quy - comment - 19 Apr 2017

I have tested this item successfully on 1c6f46f

Tested on MySQL only.
Did a clean install and worked as expected.
Did the upgrade and manually ran the update sql in phpMyAdmin.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15403.

avatar rdeutz rdeutz - change - 19 Apr 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-19 18:54:35
Closed_By rdeutz
avatar rdeutz rdeutz - close - 19 Apr 2017
avatar rdeutz rdeutz - merge - 19 Apr 2017
avatar brianteeman
brianteeman - comment - 19 Apr 2017

thanks

Add a Comment

Login with GitHub to post a comment