srchub

srchub Commit Details


Date:2014-12-27 19:33:57 (10 years 12 days ago)
Author:Natalie Adams
Branch:master
Commit:cc6f2b2ca8b5cc0eeb509f403e5cd02781cdb775
Parents: d0095cb454976054ed74f7c4b759fe7970a36b8c
Message:Fixing issue 85 Fixing old issue 68 Fixing old issue 45

Changes:

File differences

indefero/src/IDF/Form/ProjectRequest.php
5050
5151
5252
53
54
55
56
57
58
59
60
61
62
63
5364
5465
5566
......
5768
5869
5970
60
71
72
73
6174
6275
6376
            throw new Exception(__('Cannot save the model from an invalid form.'));
        }
        $shortname = $this->cleaned_data['shortname'];
        if (preg_match('/[^\-A-Za-z0-9]/', $shortname)) {
            throw new Pluf_Form_Invalid(__('This shortname contains illegal characters, please use only letters, digits and dash (-).'));
        }
        if (mb_substr($shortname, 0, 1) == '-') {
            throw new Pluf_Form_Invalid(__('The shortname cannot start with the dash (-) character.'));
        }
        if (mb_substr($shortname, -1) == '-') {
            throw new Pluf_Form_Invalid(__('The shortname cannot end with the dash (-) character.'));
        }
        $checksql = new Pluf_SQL(sprintf("shortname='%s'", $this->cleaned_data['shortname']));
        $requestcheck = Pluf::factory("IDF_Project")->getCount(array('filter'=>$checksql->gen()));
        if ($requestcheck == 1)
        try
        {
            $request = new IDF_ProjectRequest();
            $request->shortname = $this->cleaned_data['shortname'];
            // The trim really isn't needed - but does ensure that no whitespace will end up in the name
            $request->shortname = trim($shortname);
            $request->repotype = $this->cleaned_data['repotype'];
            $request->desc = $this->cleaned_data['desc'];
            $request->submitter = $this->user;
indefero/src/IDF/Views/Source.php
131131
132132
133133
134
134135
135136
136137
                                                     'tags' => $tags,
                                                     'tags_in' => $in_tags,
                                                     'scm' => $scmConf,
                                                     'numcommits' => count($rchanges),
                                                     'full' => isset($_GET["full"]) ? true : false
                                                     ),
                                               $request);
indefero/src/IDF/templates/idf/source/git/branch_tag_list.html
3535
3636
3737
38
3839
3940
{/foreach}
</ul>
{/if}
    Number of commits: {$numcommits}
</div>

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.09021s using 22 queries.