Skip to content

Commit 1a9f225

Browse files
committed
change default URLs to be valid
1 parent 272d56e commit 1a9f225

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

entities/Patch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract class Patch
7878
public string $hash = '';
7979

8080
/** @Column */
81-
public string $video_url = 'https://...';
81+
public string $video_url = '';
8282

8383
/** @Column */
8484
public int $lines_added;

entities/ProjGroup.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ProjGroup
3838
public string $project_description = '';
3939

4040
/** @Column */
41-
public string $project_website = 'https://...';
41+
public string $project_website = 'https://example.org';
4242

4343
/** @Column(length=150) */
4444
public string $repository = '';
@@ -56,31 +56,31 @@ class ProjGroup
5656
public int $lines_of_code = 0;
5757

5858
/** @Column */
59-
public string $coding_style = 'https://...';
59+
public string $coding_style = 'https://example.org';
6060

6161
/** @Column */
62-
public string $bugs_for_beginners = 'https://...';
62+
public string $bugs_for_beginners = 'https://example.org';
6363

6464
/** @Column */
65-
public string $project_ideas = 'https://...';
65+
public string $project_ideas = 'https://example.org';
6666

6767
/** @Column(length=1000) */
6868
public string $student_programs = '';
6969

7070
/** @Column */
71-
public string $getting_started_manual = 'https://...';
71+
public string $getting_started_manual = 'https://example.org';
7272

7373
/** @Column */
74-
public string $developers_manual = 'https://...';
74+
public string $developers_manual = 'https://example.org';
7575

7676
/** @Column */
77-
public string $testing_manual = 'https://...';
77+
public string $testing_manual = 'https://example.org';
7878

7979
/** @Column */
80-
public string $developers_mailing_list = 'https://...';
80+
public string $developers_mailing_list = 'https://example.org';
8181

8282
/** @Column */
83-
public string $patch_submission = 'https://...';
83+
public string $patch_submission = 'https://example.org';
8484

8585
/** @Column(length=40) */
8686
public string $hash_proposal_file = '';

entities/SelectedBug.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class SelectedBug
2525
public int $year;
2626

2727
/** @Column */
28-
public string $issue_url = 'https://...';
28+
public string $issue_url = '';
2929

3030
/** @Column */
31-
public string $repro_url = 'https://...';
31+
public string $repro_url = '';
3232

3333
/** @Column(length=4096) */
3434
public string $description;

templates.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function handle_form(&$obj, $hide_fields, $readonly, $only_fields = null,
146146
} else {
147147
$val = (string)$orig_value;
148148
}
149-
if (str_starts_with($val, 'https://')) {
149+
if (str_starts_with($val, 'https://') || str_contains($name, 'url')) {
150150
$field_class = UrlType::class;
151151
} else {
152152
if ($class->getProperty($name)->getType()->getName() === 'int') {

0 commit comments

Comments
 (0)