Yii Framework Forum: Yii 1.1.9 known issues - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii 1.1.9 known issues Rate Topic: -----

#1 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 05 January 2012 - 07:41 PM

Unfortunatelly there are some issues with CActiveForm introduced in the Yii 1.1.9 (mea culpa)

- http://code.google.c.../detail?id=3070
If $form->error() is called without rendering the input field an JS error is fired.

- http://code.google.c.../detail?id=3071
beforeValidateAttribute and afterValidateAttribute are not called

Issues fixed in r3529 - http://code.google.c...e/detail?r=3529

- http://www.yiiframew...p?/topic/27455-
Required fields are not validated if left empty

This issue is fixed in r3530 - http://code.google.c...e/detail?r=3530

Fixing the above issues (r3529) a new "bug" ws introduced, and validateOnType was not working

This is fixed in r3531 - http://code.google.c...e/detail?r=3531

------------------

To update just grab the latest jquery.yiiactiveform.js file and put it in your Yii folder.
Don't forget to clean the assets folder of your project(s)
Find more about me.... btw. Do you know your WAN IP?
0

#2 User is offline   bobbydigital 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 11-December 10

Posted 07 January 2012 - 07:00 AM

if(!o.length)
   return undefined;


This does not work with input type file. Because there is o but there is not o[0].

The bug still exist if you set validateOnType = true.
0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 07 January 2012 - 08:22 AM

o is the jQuery object generated from the inputID... o[0] should give the originating DOM element... it should not matter if the type is file...
can you post your code so I can check what is the problem here...
Find more about me.... btw. Do you know your WAN IP?
0

#4 User is offline   bobbydigital 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 11-December 10

Posted 07 January 2012 - 12:05 PM

So, if you set the form

'validateOnType' => true


You are going here :
if (this.validateOnType) {
                                        $form.find('#' + this.inputID).keyup(function () {
                                                if (attribute.value !== getAFValue($(attribute))) {
                                                        validate(attribute, false);
                                                }
                                                
                                        });
                                }

But when you calling $(attribute) and passing it to getAFValue($(attribute)) there is no o[0].tagName and validation crashes.


And i have changed the code to this:
if (this.validateOnType) {
                                        $form.find('#' + this.inputID).keyup(function () {
                                                if (attribute.value !== getAFValue($('#' + attribute.inputID))) {
                                                        validate(attribute, false);
                                                }
                                                
                                        });
                                }


But you can fix it better way.
Best Regards
0

#5 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 07 January 2012 - 01:21 PM

You are right... this "bug" was introduced in the r3529 when fixing above issues - http://code.google.c...e/detail?r=3529

Thanks for reporting this...

Now it's fixed - http://code.google.c...e/detail?r=3531
Find more about me.... btw. Do you know your WAN IP?
0

#6 User is offline   bobbydigital 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 11-December 10

Posted 07 January 2012 - 03:01 PM

Thank you for the fixes.
0

#7 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 09 January 2012 - 12:43 PM

Sooooo... Is there going to be a v1.1.9a?
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
1

#8 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 10 January 2012 - 03:06 AM

View PostDa:Sourcerer, on 09 January 2012 - 12:43 PM, said:

Sooooo... Is there going to be a v1.1.9a?


+1
0

#9 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 10 January 2012 - 05:15 AM

I would call it 1.1.9.1 :D
Yii user #37
0

#10 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 10 January 2012 - 07:44 AM

Yii is not the Linux kernel ;) But looking back at the past version numbers for Yii, v1.1.9a could be problematic: I associate tha appended letter as a hotfix. But it looks like this has been used already to mark alpha-grade software (Yii v1.0a, v1.1.0a)
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#11 User is offline   gallego123 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 535
  • Joined: 11-August 09
  • Location:Argentina

Posted 23 January 2012 - 10:13 AM

View PostDa:Sourcerer, on 09 January 2012 - 12:43 PM, said:

Sooooo... Is there going to be a v1.1.9a?


official reply?



KISS - Keep It Simple Stupid
ASAP-As Soon As Possible
http://www.yiiframew...oc/cookbook/71/
0

#12 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 23 January 2012 - 04:11 PM

There will not be the 1.1.9.(1 or a) version... but we will release the 1.1.10 much sooner... probably next weekend...
Find more about me.... btw. Do you know your WAN IP?
4

#13 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 23 January 2012 - 04:53 PM

Well, I think we can live with that :lol:
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#14 User is offline   icehead 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 29-November 11

Posted 11 February 2012 - 05:13 PM

Still no new release ?
0

#15 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 13 February 2012 - 02:46 AM

Just released ;)

We where waiting a bit more to see if there will be some more bug issues about the 1.1.9 version so to release a version as stable as possible...
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users