#108 new
lostboy

JS Error on Model Creation - undefined element dp

Reported by lostboy | October 5th, 2009 @ 09:49 AM | in 0.20

I am seeing a JS error

dp not defined ( multiple pages)

window.onload = function() {

dp.SyntaxHighlighter.ClipboardSwf = '/recess/index.php/flash/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('code');

}

This is causing a problem when attempting to generate a model on an existing database as it doesn't allow/request me to enter the DB table name, as specified in the array, since all the JS is then stopped

This was tested in
Win XP Pro / Apache 2.2
IE 8
FF3.5
Undefined index: primaryKey

Location: Line 209 of C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\recess\recess\recess\apps\tools\controllers\RecessToolsAppsController.class.php
205: $createTable = $values['createTable'] == 'Yes' ? true : false;
206: $tableName = $values['tableName'];
207: }
208: $propertyNames = $values['fields'];
209: $primaryKey = $values['primaryKey'];
210: $types = $values['types'];
211:
212: Library::import('recess.database.orm.Model', true);
213: // Forcing b/c ModelDescriptor is in Model
214:
It would be awesome to get this one sorted out. I really want to take this for a spin

Lostboy

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Recess PHP Framework is an open source, full stack, RESTful PHP framework.

http://www.recessframework.org/

People watching this ticket

Tags

Pages