Permalink
Commits on Dec 14, 2012
  1. Less far-future date assertions, seems to throw off some PHP installs

    Apparently not all PHPs (Travis) are build to last a 100 years,
    who would've thought ;)
    chillu committed Dec 14, 2012
  2. Merge remote-tracking branch 'origin/3.1'

    Conflicts:
    	.travis.yml
    	dev/DevelopmentAdmin.php
    	email/Mailer.php
    	tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php
    chillu committed Dec 14, 2012
  3. Merge remote-tracking branch 'origin/3.1'

    Conflicts:
    	composer.json
    chillu committed Dec 14, 2012
  4. Merge remote-tracking branch 'origin/3.0' into 3.1

    Conflicts:
    	tests/model/DataQueryTest.php
    chillu committed Dec 14, 2012
  5. Don't register a PGSQL failure as a Travis build failure.

    Although PGSQL build will still be executed, a failure of that build won't registre as a Travis failure.  This is a workaround until the PGSQL build has been fixed.
    sminnee committed Dec 14, 2012
  6. API Copying instance props on FormField readonly/disabled transformat…

    …ions
    
    Introduced new FormField->castedCopy() method
    which tries to replicate the existing form field instance
    as closely as possible.
    
    Primarily, the fix was targeted at consistently passing
    through FormField->description to all of its variations.
    chillu committed Dec 13, 2012
  7. API FormField->setDescription() visible in default template

    Renders into <span class="description"> instead of "title" attribute
    chillu committed Dec 13, 2012
  8. UploadField->setDescription() support, removed extraneous "title" attrs

    The "title" attrs interfere with the new default tooltip logic in LeftAndMain.FieldHelp.js
    chillu committed Nov 30, 2012
  9. Merge pull request #1031 from TheFrozenFire/fix-SecurityFormVisibility

    BUG: Set visibility on login form methods to public.
    sminnee committed Dec 14, 2012
  10. Merge pull request #1020 from silverstripe-rebelalliance/open/7673

    API Make DataList and ArrayList immutable
    sminnee committed Dec 14, 2012
  11. FIX Make sure you can only remove items from a DataList that are actu…

    …ally in it
    Hamish Friedlander committed Dec 12, 2012
  12. FIX Make sure ArrayList#limit uses clone so for subclasses it returns…

    … instances of same subclass
    Hamish Friedlander committed Dec 12, 2012
  13. API Make DataList and ArrayList immutable

    In 3.0 there was some confusion about whether DataLists and ArrayLists
    were mutable or not. If DataLists were immutable, they'd return the result, and your code
    would look like
    
      $list = $list->filter(....);
    
    If DataLists were mutable, they'd operate on themselves, returning nothing, and your code
    would look like
    
     $list->filter(....);
    
    This makes all DataLists and ArrayList immutable for all _searching_ operations.
    Operations on DataList that modify the underlying SQL data store remain mutating.
    
    - These functions no longer mutate the existing object, and if you do not capture the value
    returned by them will have no effect:
    
      ArrayList#reverse
      ArrayList#sort
      ArrayList#filter
      ArrayList#exclude
    
      DataList#dataQuery (use DataList#alterDataQuery to modify dataQuery in a safe manner)
      DataList#where
      DataList#limit
      DataList#sort
      DataList#addFilter
      DataList#applyFilterContext
      DataList#innerJoin
      DataList#leftJoin
      DataList#find
      DataList#byIDs
      DataList#reverse
    
    - DataList#setDataQueryParam has been added as syntactic sugar around the most common
    cause of accessing the dataQuery directly - setting query parameters
    
    - RelationList#setForeignID has been removed. Always use RelationList#forForeignID
    when querying, and overload RelationList#foreignIDList when subclassing.
    
    - Relatedly,the protected variable RelationList->foreignID has been removed, as the ID is
    now stored on a query parameter. Use RelationList#getForeignID to read it.
    Hamish Friedlander committed Dec 12, 2012
Commits on Dec 13, 2012
  1. Fixed spacing

    chillu committed Dec 13, 2012
  2. API Storing alternative DB name in cookie rather than session

    Session is not initialized by the time we need to use
    the setting in DB::connect(). Cookie values get initialized
    automatically for each request.
    
    Tightened name format validation to ensure it can only
    be used for temporary databases, rather than switching
    the browser session to a different production database.
    
    Encrypting token for secure cookie usage.
    Added dev/generatesecuretoken to generate this token.
    Not storing in YML config directly because of web access issues.
    chillu committed Dec 6, 2012
  3. Bug fix and code clean up

    Removed tempory button fixs not needed any more,
    Removed unrelated commits,
    fix for preview note
    clarkepaul committed with chillu Dec 12, 2012
  4. API Allow ignoring persistent tab state through entwine property.

    In this case we don't want to rely on data attributes in the DOM, as
    this should be an inbuilt property associated with this class.
    mateusz committed with chillu Dec 10, 2012