Go to file
stojg efa9ff9b08 API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before.
This bug will surface when using the ORM and adding an join to DataList
where a DataObject inherits another DataObject.

If you for example want to restrict the number of pages that only have a
related Staff object:

    $list = DataList::create('Page')
		->InnerJoin('Staff', '"Staff"."ID" = "Page"."StaffID");

This will create a SQL query where the INNER JOIN is before the
LEFT JOIN of Page and SiteTree in the resulting SQL string. In MySQL
and PostgreSQL this will create an invalid query.

This patch solves the problem by sorting the joins.
2012-12-11 11:04:29 +13:00
_config FIX issue with cyclic configs when framework called sapphire 2012-08-28 15:44:40 +12:00
admin BUG Fix ModelAdmin search (fixes #8052) 2012-12-04 14:28:36 +01:00
api BUG JSONDataFormatter should respect canView() permissions 2012-11-05 14:03:39 +13:00
cache FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
cli Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
conf FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
control FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
core Add Composer autoloader 2012-11-15 13:40:09 +01:00
css Fixed GridField button alignment (regression from a9cbea34) 2012-12-06 14:50:27 +01:00
dev Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
docs Removed @stable workarounds from composer docs 2012-12-07 00:41:03 +01:00
email FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
filesystem BUG Fixing non-object on file upload 2012-11-08 21:28:05 +13:00
forms BUGFIX Correct redirection URL on deletion in GridFieldDetailForm 2012-11-16 15:32:17 +13:00
i18n Added Simplifie Chinese to i18n::$common_locales 2012-11-09 10:13:01 +01:00
images BUGFIXES: File Uploads 2012-06-08 18:40:33 +02:00
javascript BUG Fix rewriteHashlinks in TabSet 2012-12-04 16:00:40 +11:00
lang Updating default en.yml translations 2012-11-07 11:42:08 +13:00
model API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before. 2012-12-11 11:04:29 +13:00
oembed FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
parsers FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
scss Fixed GridField button alignment (regression from a9cbea34) 2012-12-06 14:50:27 +01:00
search MINOR: Forgot Apostrophe in comment 2012-11-29 12:12:26 +01:00
security API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00
tasks FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
templates Adding ability to translate "Edit" text in GridFieldEditButton 2012-11-07 11:34:51 +13:00
tests API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before. 2012-12-11 11:04:29 +13:00
thirdparty Upgraded jQuery UI from 1.9.1 to 1.9.2 (fixes #8062) 2012-12-04 16:05:48 +01:00
view BUG only call filemtime if file exists 2012-11-21 13:11:53 +13:00
_config.php FEATURE: Allow adding media to the CMS using oEmbed 2012-05-24 17:00:21 +12:00
_register_database.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
.gitignore Merge branch 'master' of git://github.com/silverstripe/sapphire 2012-05-03 13:40:26 +12:00
.htaccess BUGFIX: Put all php file inclusions/exclusions into a single file, because some servers don't seem to allow reenabling of file access in a subdirection .htaccess file. 2012-05-03 13:13:51 +12:00
.travis.yml Travis branch exclusions 2012-10-16 10:25:18 +02:00
cli-script.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
composer.json NEW Support for Behat tests, and initial set of tests 2012-11-16 15:31:55 +13:00
config.rb MINOR Using SCSS/Compass for sapphire/css 2012-01-08 19:14:32 +01:00
CONTRIBUTING.md Added github-compatible contributing notes 2012-10-11 17:20:00 +02:00
main.php BUGFIX Fixing bootstrap.php to work with FakeController properly for 2012-05-09 23:05:38 +12:00
main.php5 MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Makefile ENHANCEMENT Allowing JSTestDriver execution in tests/javascript/ by adding bash scripts and new Makefile command ("make jasmine") 2011-03-22 18:05:43 +13:00
README.md Merge branch '3.0.3' into 3.0 2012-11-16 14:57:50 +13:00
sake API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:50:19 +12:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
static-main.php BUGFIX Loosened character replacement in static-main.php, to allow for multibyte paths (see URLSegmentFilter::$default_allow_multibyte) 2012-05-08 23:43:45 +02:00
web.config BUGFIX Disallow web access to sapphire/silverstripe_version to avoid information leakage 2010-12-09 22:53:24 +00:00

SilverStripe Framework

Build Status

PHP5 framework forming the base for the SilverStripe CMS (http://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

Development and contribution

If you would like to make changes to SilverStripe core product, we have an extensive guide to contributing code that we invite you to look at before submitting a pull request.

If you would like to get involved, but don't know what to fix, the Trac tickets are a good place to start.

For other ways to contribute, see the code contribution guidelines

License

Copyright (c) 2007-2012, SilverStripe Limited - www.silverstripe.com
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    * Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software 
      without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

Attribution